﻿using Newtonsoft.Json.Linq;
using System;

namespace XbmcManager.Types
{
    public class XbmcTVShow
    {
        #region Properties
        private static string TITLE = "title";
        private static string TVSHOWID = "tvshowid";

        public String Title;
        public int ID;
        public readonly static string[] FIELDS = { TITLE };
        #endregion
        
        /// <summary>
        /// Constructor for XBMCTvShow Class
        /// </summary>
        /// <param name="tvshow"></param>
        public XbmcTVShow(JObject tvshow)
        {
            //"tvshowid" is returned by default. you can not specify it to be returned.
            this.Title = (String)tvshow[TITLE];
            this.ID = (int)tvshow[TVSHOWID];
        }
    }
}
